package com.itheima.exerciseTest.test10_19;

import java.util.ArrayList;

public class Test17 {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        list.add(new balabala("a"));
        list.add(new balabala("b"));
        list.add(new balabala("c"));
        list.add(new balabala("d"));
        list.add(new balabala("e"));
        list.add(new balabala("f"));
        list.add(new balabala("g"));
    }
}

class Student{
    private String name;

    public Student() {
    }

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class balabala extends  Student{
    public balabala() {
    }

    public balabala(String name) {
        super(name);
    }

}


